#!/bin/sh

#删除容器
docker container stop zhanshop_php
docker container rm zhanshop_php

docker build -f ./Dockerfile -t zhanshop_php:v1 ./

cd ../
dirpath=$(cd $(dirname $0);pwd)

# 就这样就有了
docker run --name zhanshop_php -v $dirpath:/var/www -p 6201:6201/tcp --restart=always zhanshop_php:v1 &